# -*- python -*-
# Copyright 2010 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.


Import('env')

nacl_close_test_exe = env.ComponentProgram(
    'nacl_close_test',
    'nacl_close_test.c',
    EXTRA_LIBS=['imc',
                'imc',
                'platform',
                'gio'])
node = env.CommandTest(
    'nacl_close_test.out',
    command=[nacl_close_test_exe])
env.AddNodeToTestSuite(node, ['small_tests'], 'run_nacl_close_test')

double_nacl_close_test_exe = env.ComponentProgram(
    'double_nacl_close_test',
    'double_nacl_close_test.c',
    EXTRA_LIBS=['imc',
                'imc',
                'platform',
                'gio'])
node = env.CommandTest(
    'double_nacl_close_test.out',
    command=[double_nacl_close_test_exe])
env.AddNodeToTestSuite(node, ['small_tests'], 'run_double_nacl_close_test')

nacl_create_memory_object_test_exe = env.ComponentProgram(
    'nacl_create_memory_object_test',
    'nacl_create_memory_object_test.c',
    EXTRA_LIBS=['imc',
                'imc',
                'platform',
                'gio'])
node = env.CommandTest(
    'nacl_create_memory_object_test.out',
    command=[nacl_create_memory_object_test_exe])
env.AddNodeToTestSuite(node,
                       ['small_tests'],
                       'run_nacl_create_memory_object_test')

